# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Mladen Pejakovic <pejakm@gmail.com>

pkgname=perl-http-response-encoding
pkgver=0.06
pkgrel=6
pkgdesc="Adds encoding to HTTP::Response"
arch=('any')
url="https://search.cpan.org/dist/HTTP-Response-Encoding"
license=('GPL' 'PerlArtistic')
depends=('perl-libwww')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/D/DA/DANKOGAI/HTTP-Response-Encoding-$pkgver.tar.gz")
sha256sums=('10167b8e238a682004ab0d7accbe9d76eae2db57af07c5ae2dfa808074a4a8aa')

build() {
  cd "${srcdir}"/HTTP-Response-Encoding-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}"/HTTP-Response-Encoding-$pkgver
  make install DESTDIR="${pkgdir}"
  find "${pkgdir}" -name '.packlist' -delete
  find "${pkgdir}" -name '*.pod' -delete
}
